<h3>Daftar User</h3>
<table class="table table-hover table-bordered" id="list_users">
	<thead>
		<tr>
			<th>NIP</th>
			<th>NIP Parent</th>
			<th>Kewenangan</th>
			<th>Status Aktif</th>
			<th colspan="3">AKSI</th>
		</tr>
	</thead>
	<tbody>
	</tbody>
</table>
<a data-toggle="modal" href="#myModal" class="btn btn-primary btn-lg" onclick="clear_input()">Rekam User</a>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="clear_input()">&times;</button>
          <h4 class="modal-title" id="judul_modal">Perekaman User</h4>
        </div>
        <div class="modal-body">
          	<form role="form" id="rekam_frm" method="post">
          		<input type="hidden" class="form-control" id="id_user">
			  <div class="form-group">
			    <label for="nip">NIP</label>
			    <input type="text" class="form-control" id="nip" placeholder="Masukkan NIP">
			  </div>
			  <div class="form-group">
			    <label for="password">Password</label>
			    <input type="password" class="form-control" id="password" placeholder="Password">
			  </div>
			  <div class="form-group">
			    <label for="password2">Ulangi Password</label>
			    <input type="password" class="form-control" id="password2" placeholder="Password">
			  </div>
			  <div class="form-group">
			    <label for="level">Kewenangan</label>
			    <select class="form-control" id="kewenangan">
			      <option value="1">Admin</option>
			      <option value="2">Kanwil</option>
			      <option value="3">Operator Kanwil</option>
			    </select>
			  </div>
				<button type="submit" class="btn btn-default" data-dismiss="modal" onclick="reload_list_user()">Batal</button>
          		<button type="submit" class="btn btn-default" id="btn_simpan">Simpan</button>
          		<button type="submit" class="btn btn-default" id="btn_simpan_ubah">Simpan Perubahan</button>
          	</form>
        </div>
        <div class="modal-footer">
          	<div id="error" class="alert alert-danger">...</div>
          	<div id="success" class="alert alert-success">...</div>
        </div>
      </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
  </div><!-- /.modal -->


<script type="text/javascript" src="js/daftar.js" ></script>